package observer.practice_03;

import org.apache.log4j.Logger;

/**
 * @author yi qiang
 * @date 2021/11/4 2:17
 */
public class MongoObserver implements Observer{

    private final Logger log=Logger.getLogger(MongoObserver.class);

    @Override
    public String getName() {
        return "MongoObserver";
    }

    @Override
    public void handle(String msg) {
        log.info("mongo已记录: "+msg);
    }
}
